package br.com.honorato.enun;

import br.com.honorato.util.Util;

public enum EDaoErro
{
	PersistenceException("DAO0100"), NonUniqueResultException("DAO0102");

	private final String code;

	private EDaoErro(String code)
	{
		this.code = code;
	}

	public String getLabel(String... params)
	{
		return Util.getErroMessage(this.code, params);
	}

	public String getCode()
	{
		return this.code;
	}
}